package com.ruoyi.system.message.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 消息提醒对象 mini_message
 *
 * @author lhj
 * @date 2024-02-18
 */
public class MiniMessage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 消息内容
     */
    @Excel(name = "消息标题")
    private String messageTitle;

    /**
     * 消息内容
     */
    @Excel(name = "消息内容")
    private String messageContent;

    /**
     * 发送方式 0触发发送 1定时发送
     */
    @Excel(name = "发送方式 0触发发送 1定时发送")
    private Integer sendMode;

    /**
     * 提醒时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提醒时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reminderTime;

    /**
     * 接收人
     */
    @Excel(name = "接收人")
    private Long recipient;

    private Integer status;

    /**
     * 发送人
     */
    @Excel(name = "发送人")
    private String sender;
    /**
     * 发送时间
     */
    private Date sendTime;
    /**
     * 是否已读
     */
    private Integer readOrNot;

//    private JPushApp jPushApp;

    private List<String> pushValue;
//    @TableField(exist = false)
    private String recipientName;
    /**
     * 删除标识
     */
    @Excel(name = "删除标识")
    private Integer deleteFlag;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setSendMode(Integer sendMode) {
        this.sendMode = sendMode;
    }

    public Integer getReadOrNot() {
        return readOrNot;
    }

    public void setReadOrNot(Integer readOrNot) {
        this.readOrNot = readOrNot;
    }

    public Integer getSendMode() {
        return sendMode;
    }

    public void setReminderTime(Date reminderTime) {
        this.reminderTime = reminderTime;
    }

    public Date getReminderTime() {
        return reminderTime;
    }

    public void setRecipient(Long recipient) {
        this.recipient = recipient;
    }

    public Long getRecipient() {
        return recipient;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getSender() {
        return sender;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getMessageTitle() {
        return messageTitle;
    }

    public void setMessageTitle(String messageTitle) {
        this.messageTitle = messageTitle;
    }

    public List<String> getPushValue() {
        return pushValue;
    }

    public void setPushValue(List<String> pushValue) {
        this.pushValue = pushValue;
    }

    public String getRecipientName() {
        return recipientName;
    }

    public void setRecipientName(String recipientName) {
        this.recipientName = recipientName;
    }

    @Override
    public String toString() {
        return "MiniMessage{" +
                "id='" + id + '\'' +
                ", messageTitle='" + messageTitle + '\'' +
                ", messageContent='" + messageContent + '\'' +
                ", sendMode=" + sendMode +
                ", reminderTime=" + reminderTime +
                ", recipient=" + recipient +
                ", status=" + status +
                ", sender='" + sender + '\'' +
                ", sendTime=" + sendTime +
                ", readOrNot=" + readOrNot +
                ", pushValue=" + pushValue +
                ", recipientName='" + recipientName + '\'' +
                ", deleteFlag=" + deleteFlag +
                '}';
    }
}
